﻿<Page x:Class="Client.View.DirectConnection"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      xmlns:Controls="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
      mc:Ignorable="d" 
      d:DesignHeight="400" d:DesignWidth="500"
	Title="DirecConnection">
    <Page.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>

                <ResourceDictionary Source="/Icons.xaml" />
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Colours.xaml" />
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Fonts.xaml" />
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.xaml" />
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.AnimatedSingleRowTabControl.xaml" />
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Accents/Blue.xaml" />
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Accents/BaseLight.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>

    </Page.Resources>
    <Grid>
        <Button  Style="{DynamicResource MetroCircleButtonStyle}" Width="42" Height="42" HorizontalAlignment="Left" Click="GoBack" VerticalAlignment="Top" >
            <Rectangle Width="20" Height="16">
                <Rectangle.Fill>
                    <VisualBrush Stretch="Fill" Visual="{StaticResource appbar_arrow_left}" />
                </Rectangle.Fill>
            </Rectangle>
        </Button>
        <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
            <StackPanel.Resources>
                <Style TargetType="Label" >
                    <Setter Property="Width" Value="200"></Setter>
                </Style>
                <Style TargetType="TextBox">
                    <Setter Property="Width" Value="200"></Setter>
                </Style>
            </StackPanel.Resources>
            <WrapPanel>
                <Label Content="Direct Destination IP:" HorizontalAlignment="Left" Height="26" VerticalAlignment="Top"/>
                <TextBox x:Name="DirectIP" HorizontalAlignment="Left" Height="25" TextWrapping="Wrap" Text="" VerticalAlignment="Top" TabIndex="5"/>
            </WrapPanel>
            <WrapPanel>
                <Label Content="Source User Name:" HorizontalAlignment="Left" VerticalAlignment="Top" RenderTransformOrigin="0.477,-0.154"/>
                <TextBox x:Name="SrcName" HorizontalAlignment="Left" Height="25" TextWrapping="Wrap" Text="" VerticalAlignment="Top" TabIndex="7"/>
            </WrapPanel>
            <WrapPanel>
                <Label Content="Destination User Name:" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                <TextBox x:Name="DstName" HorizontalAlignment="Left" Height="25" TextWrapping="Wrap" Text="" VerticalAlignment="Top" TabIndex="8"/>
            </WrapPanel>
            <WrapPanel Margin="0,10,0,0">
                <Controls:Tile   Click="Button_Click_5" Opacity="1"  Width="93" Height="28" HorizontalAlignment="Left" VerticalAlignment="Top" VerticalContentAlignment="Top" TextBlock.FontSize="3" Margin="5,0,15,0" FontSize="10">
                    <TextBlock Text="Connect" FontSize="15" Foreground="White" VerticalAlignment="Center"/>
                </Controls:Tile>
                <Controls:Tile   Click="Button_Click_3" Opacity="1"  Width="93" Height="28" HorizontalAlignment="Left" VerticalAlignment="Top" VerticalContentAlignment="Top" TextBlock.FontSize="3" Margin="5,0,15,0" FontSize="10">
                    <TextBlock Text="Listen" FontSize="15" Foreground="White" VerticalAlignment="Center"/>
                </Controls:Tile>
            </WrapPanel>
        </StackPanel>
    </Grid>
</Page>
